|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.desktop.core.actions.util.InternalActionItem
org.eclipse.vtp.desktop.core.actions.util.InternalActionSet
public class InternalActionSet
This is a concrete menu/sub-menu implementation of the
IProvisioningActionSet and
InternalActionItemContainer interfaces and
provides the default behavior of those interfaces.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.vtp.desktop.core.actions.util.InternalActionItem |
|---|
pluginNameSpace |
| Constructor Summary | |
|---|---|
InternalActionSet(java.lang.String containerId,
java.lang.String name)
Creates a new InternalActionSet with the given
container id and name. |
|
| Method Summary | |
|---|---|
boolean |
addActionItem(InternalActionItem actionItem)
Adds the given action item to the list of items contained in this sub-menu. |
boolean |
addSection(InternalActionSetSection section)
Adds the given section to this action set. |
void |
fillContextMenu(org.eclipse.jface.action.IMenuManager menuManager)
Adds this containers actions and child containers to the given menu manager. |
InternalActionItemContainer |
findContainer(java.util.Stack ids)
Locates the container with the given set of ids. |
void |
processSelectionChange(IProvisioningModelSelection selection)
Notifies the action (and filter) that the selection has changed. |
void |
setSorter(IProvisioningActionItemSorter sorter)
Associates the given sorter with this action set. |
| Methods inherited from class org.eclipse.vtp.desktop.core.actions.util.InternalActionItem |
|---|
getAvailability, getContainerId, getCurrentSelection, getName, getToolTip, setFilterClass, setName, setPluginNameSpace, setTargetClass, setToolTip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.vtp.desktop.core.actions.util.IProvisioningActionItem |
|---|
getName, getToolTip |
| Constructor Detail |
|---|
public InternalActionSet(java.lang.String containerId,
java.lang.String name)
InternalActionSet with the given
container id and name.
containerId - The id of this action setname - The name of this action set| Method Detail |
|---|
public void setSorter(IProvisioningActionItemSorter sorter)
sorter - the new sorterpublic boolean addActionItem(InternalActionItem actionItem)
InternalActionItemContainer
addActionItem in interface InternalActionItemContaineractionItem - The item to add.
true if the action was added, false
if another action with the same name is already containedpublic boolean addSection(InternalActionSetSection section)
section - The section to add
true if the section was added successfully,
false if the section name already exists in this
action setpublic InternalActionItemContainer findContainer(java.util.Stack ids)
InternalActionItemContainer
findContainer in interface InternalActionItemContainerids - A Stack of id strings
public void processSelectionChange(IProvisioningModelSelection selection)
InternalActionItem
processSelectionChange in class InternalActionItemselection - The new user selectionpublic void fillContextMenu(org.eclipse.jface.action.IMenuManager menuManager)
InternalActionItemContainer
fillContextMenu in interface InternalActionItemContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||